package com.ssmIntegration.controller;

import com.ssmIntegration.pojo.Employee;
import com.ssmIntegration.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/emp")
public class EmployeeController {

    @Autowired
    private EmployeeService employeeService;

    @RequestMapping("qae")
    public List<Employee> queryAllEmps() {
        List<Employee> employees = employeeService.queryAllEmps();
        return employees;
    }
}
